﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace PRE.Report
{
    using DevExpress.XtraPrinting;
    using DevExpress.XtraEditors;
    using DevExpress.XtraReports.UI;
    //using System.IO;

    public partial class FrmReport_Base : DevExpress.XtraEditors.XtraForm
    {
        public FrmReport_Base()
        {
            InitializeComponent();
        }

        private void FrmReport_Base_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// Used when displaying a single report
        /// </summary>
        /// <param name="report">XtraReport</param>
        public void SetReport(XtraReport report)
        {
            printControl1.PrintingSystem = report.PrintingSystem;
            report.CreateDocument();
            printControl1.UpdatePageView();
        }
    }
}